package com.xframe.domain.e3sp.basedata;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.*;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: 备件类别
 * @ClassName: com.xframe.domain.e3sp.basedata.PartCategory
 * @Author: lmx
 * @CreateTime: 2024/01/02
 **/
@Data
@Accessors(chain=true)
@XTable(value = "p_t01_part_category", label = "备件类别")
@XSelectItem(keyName = "categoryId",codeName = "categoryCode",textName = "name")
public class PartCategory extends BaseModel {
    /**
     * 备件类别ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "category_id", primaryKeyFlag = true,desc = "备件类别ID")
    private Long categoryId;

    /**
     * 备件类别编码
     */
    @XQueryCondition
    @XColumn(name = "category_code", uniqueFlag = true,desc = "备件类别编码",length = 200)
    private String categoryCode;


    /**
     * 中文名称
     */
    @XQueryCondition
    @XColumn(name = "name",desc = "中文名称",length = 200,nullFlag = true)
    private String name;

    /**
     * 备注
     */
    @XColumn(name = "remark",desc = "备注",length = 500,nullFlag = true)
    private String remark;
}
